<!doctype html>
<html>
<head>
  <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

  <link href="__ROOT__/statics/simpleboot/themes/{:C('SP_ADMIN_STYLE')}/theme.min.css" rel="stylesheet">
    <link href="__ROOT__/statics/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="__ROOT__/statics/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="__ROOT__/statics/simpleboot/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
    .length_3{width: 180px;}
  </style>
  <!--[if IE 7]>
  <link rel="stylesheet" href="__ROOT__/statics/simpleboot/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
  <![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "__ROOT__/",
    JS_ROOT: "statics/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="__ROOT__/statics/js/jquery.js"></script>
    <script src="__ROOT__/statics/js/wind.js"></script>
    <script src="__ROOT__/statics/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<if condition="APP_DEBUG">
  <style>
    #think_page_trace_open{
      z-index:9999;
    }
  </style>

</if>
</head>
<admintpl file="header" />
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
     <li class="active"><a href="{:U('product/index')}">产品列表</a></li>
     <li><a href="{:U('product/add')}">添加产品</a></li>
  </ul>
  
  <form class="well form-search" method="post" action="{:u('Product/index')}">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        <span class="mr20">分类：
        <select name="brand" class="normal_select">{$brandlist}</select>&nbsp; &nbsp;关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$keyword}" placeholder="请输入关键字...">
        <input type="submit" class="btn" value="搜索"/>
        </span>
      </div>
    </div>
  </form>
  
  <form class="form-horizontal J_ajaxForm" action="" method="post">
    <div class="table_list">
      <table width="100%" class="table table-hover">
        <thead>
	          <tr>
	            <th width="50">ID</th>
                <th width="100">品牌</th>
	            <th width="280">名称</th>	            
                <th>报价</th>
	            <th>操作</th>
	          </tr>
        </thead>
        	<foreach name="products" item="vo">
	        	<tr>
		            <td width="20">{$vo.id}</td>
                    <td>{:sp_brands($vo[brand])}</td>
                    <td><strong><a href="{:U("/item/$vo[id]")}" target="_blank">{$vo.pname}</a></strong><h6></td>
	            	<td><span class="fa fa-yen"></span> {$vo.price}</td>
		            <td>
		            	<a class="btn btn-info" href="{:U('product/edit',array('pid'=>$vo['id']))}">修改</a>
		            	<a class="btn btn-info" href="{:U('product/attribute',array('pid'=>$vo['id']))}" class="J_ajax_del" >估价</a>
					</td>
	          	</tr>
          </foreach>
          </table>
      <div class="pagination">{$Page}</div>
     
    </div>
  	</form>
</div>
<script src="__ROOT__/statics/js/common.js?"></script>
</body>
</html>